<template>
    <div v-for="(name,value) in user" :key="name">
        属性名是：{{ value }} --- 属性值是: {{ name }}
    </div>
</template>

<script setup>
let user = {id : 11, name :"小明" , gender : '男'}
</script>